package com.sunforum.forum.app;

import com.sunforum.common.annotation.Log;
import com.sunforum.common.core.controller.BaseController;
import com.sunforum.common.core.domain.AjaxResult;
import com.sunforum.common.enums.BusinessType;
import com.sunforum.common.utils.poi.ExcelUtil;
import com.sunforum.forum.domain.PcColumnClassification;
import com.sunforum.forum.service.IPcColumnClassificationService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * pc_栏目分类Controller
 * 
 * @author sunforum
 * @date 2025-04-23
 */
@RestController
@RequestMapping("/app/classification")
public class AppPcColumnClassificationController extends BaseController
{
    @Autowired
    private IPcColumnClassificationService pcColumnClassificationService;

    /**
     * 查询pc_栏目分类列表
     */
    @GetMapping("/list")
    public AjaxResult list(PcColumnClassification pcColumnClassification)
    {
        List<PcColumnClassification> list = pcColumnClassificationService.selectPcColumnClassificationList(pcColumnClassification);
        return success(list);
    }

}
